package lesson01;

import java.io.File;

public class Demo_105 {
    public static void main(String[] args) {
        File file = new File("d:/temp/test.txt");
        if (file.exists()){
            System.out.println("已删除文件:"+file.getAbsolutePath()+"     "+file.delete());
        }

        File file1 = new File("d:/temp/java114");
        boolean delete = file.delete();
        System.out.println("删除目录：" + delete);

    }
}
